<?php

namespace App\Http\Requests\App;

use App\Http\Requests\ApiRequest;

/**
 * @property int scan_event_id
 */
class UserLoginPollRequest extends ApiRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'scan_event_id' => 'required|int',
        ];
    }

    /**
     * @return array
     */
//    public function messages()
//    {
//        return [
//            'scan_event_id.*' => '扫码的场景值必须是数值'
//        ];
//    }
}
